package com.hyzx.qbasic.admin.domain.service;

import com.github.pagehelper.PageInfo;
import com.hyzx.qbasic.admin.model.po.CmsContentPO;
import com.hyzx.qbasic.admin.model.po.CmsPagedContentPO;
import com.hyzx.qbasic.admin.model.vo.req.admin.AddCmsContentReq;
import com.hyzx.qbasic.admin.model.vo.req.admin.GetCmsContentListReq;
import com.hyzx.qbasic.admin.model.vo.res.BaseOperationRes;

import java.util.List;

/**
 * Created by 黄江华 on 2018/7/30
 */

public interface ICmsContentService {
    PageInfo<CmsPagedContentPO> getPagedCmsContentList(GetCmsContentListReq req);

    BaseOperationRes addCmsContent(AddCmsContentReq req);

    BaseOperationRes editCmsContent(AddCmsContentReq req);

    CmsContentPO getCmsContentInfo(String contentId);

    BaseOperationRes publish(int publisher, List<String> contentIdList);

    PageInfo<CmsPagedContentPO> getPagedAuditListInfo(int pageNum, int pageSize, int userId);

    BaseOperationRes audit(int auditor, String contentId);

    BaseOperationRes withdraw(int auditor, String contentId, String withdrawReason);

    BaseOperationRes deleteContent(List<String> contentIdList);

    BaseOperationRes restoreContent(List<String> contentIdList);
}
